package net.qhzw.vip.qiyu.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 换电柜表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "dts_bar_manage")
public class DtsBarManage {
    /**
     * ID
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    /**
     * 电柜编码
     */
    @TableField(value = "electric_cabinet_code")
    @Excel(name = "设备编码", type = 1, width = 20)
    private String electricCabinetCode;

    /**
     * 电柜名称
     */
    @TableField(value = "electric_cabinet_name")
    @Excel(name = "设备名称", type = 1, width = 20)
    private String electricCabinetName;//electricCabinetName

    /**
     * 禁仓数
     */
    @Excel(name = "故障柜门数", type = 10, width = 20)
    @TableField(value = "prohibited_warehouse_num")//guzhang故障柜门数
    private Integer prohibitedWarehouseNum;

    @Excel(name = "禁用柜门数", type = 10, width = 20)
    @TableField(value = "fault_cupboarddoor_num")
    private Integer faultCupboarddoorNum;

    /**
     * 备注
     */
    @TableField(value = "remark")
    //@Excel(name = "备注", width = 20)
    private String remark;

    @TableField(value = "economize")
    @Excel(name = "省", width = 20)
    private String economize;


    @TableField(value = "market")
    @Excel(name = "市", width = 20)
    private String market;


    @TableField(value = "distinguish")
    @Excel(name = "区", width = 20)
    private String distinguish;


    @TableField(value = "onln_sts")
    @Excel(name = "在线状态", width = 20)
    private String onlnSts;


    @TableField(value = "cupboard_door_num")
    @Excel(name = "柜门数", width = 20)
    private String cupboardDoorNum;


    @TableField(value = "empty_cupboarddoor_num")
    @Excel(name = "空柜门数", width = 20)
    private String emptyCupboarddoorNum;


    @TableField(value = "battery_num")
    @Excel(name = "电池数", width = 20)
    private String batteryNum;


    @TableField(value = "full_battery_num")
    @Excel(name = "满电数", width = 20)
    private String fullBatteryNum;




    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "created")
    private Date created;



    @ApiModelProperty(value = "处理完成时上传的照片")
    @TableField(value = "picture")
    private String picture;

    @TableField(value = "status")
    private Byte status;

    @TableField(value = "is_delete")
    private Byte isDelete;

    @TableField(exist = false)
    private Integer flag;



    @TableField(exist = false)
    private Integer faultIdenti;//故障禁仓标识




}